<?php

namespace app\common\model;

use app\common\controller\Helper;
use think\Model;

class LangClassReciteAnswer extends Model
{
    use Helper;

    const RIGHT = 1;
    const RIGHT_NO = 0;
    protected $table = 'lang_class_recite_answer';

    public static function attributes($attribute, $key = null)
    {
        $list = [
            'is_right' => [
                self::RIGHT_NO => '否',
                self::RIGHT => '是',
            ],
        ];
        return self::attributeReturn($list, $attribute, $key);
    }
}